<script language="javascript">
   function CheckPost (){
      if (addForm.keyword.value == ""){
          #if(C.get('language')=='ch')
          alert("请填写关键词");
          #else
          alert("Please fill in the key words");
          #end
          addForm.keyword.focus();
          return false;
      }
     return true;
   }
</script>
<form class="needs-validation" name="addForm"  onsubmit="return CheckPost();">
    <input type="hidden" name="language" value="#(C.get('language'))">
    <div class="row">
        <div class="col-md-6 mb-3">
            <label for="keyword">
              #if(C.get('language')=='ch')
              关键字
              #else
              Keyword
              #end
            </label>
            <input type="text" class="form-control" id="keyword" name="keyword" placeholder="" value="#(keyword)" required>
        </div>
        <div class="col-md-2 text-right pt-4">
            <button class="btn btn-primary btn-block mt-2" type="submit">
                #if(C.get('language')=='ch')
                    搜索
                #else
                    Search
                #end
            </button>
        </div>
    </div>
</form>